const lowestCommonAncestor = function (root, o1, o2) {
  // write code here

}